﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SharedGenomics.Core;
using SharedGenomics.Workbench.Core;
using SharedGenomics.Workbench.Messages;

namespace SharedGenomics.Workbench.Presenters
{
    //TODO: move this?
    public class ExternalUriNavigator : IUriNavigator
    {
        public void Navigate(Uri target)
        {
            System.Diagnostics.Process.Start(target.ToString());
        }

        public void Receive(NavigateUriMessage message)
        {
            message.ThrowIfNull("message");
            this.Navigate(message.Uri);
        }
    }
}
